package builder.demo02;

public class Waiter extends Builder {
    private Food food;

    public Waiter() {
        food=new Food();

    }

    @Override
    Builder buildA(String s) {
        food.setA(s);
        return this;
    }

    @Override
    Builder buildB(String s) {
        food.setB(s);
        return this;
    }

    @Override
    Builder buildC(String s) {
        food.setC(s);
        return this;
    }

    @Override
    Builder buildD(String s) {
        food.setD(s);
        return this;
    }

    @Override
    Food getFood() {
        return food;
    }
}
